<%@ include file="/WEB-INF/views/commonJSTL.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>${s_UserPharmacy.pharmacy.name}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%@ include file="/WEB-INF/views/commonResources.jsp" %>

<script type="text/javascript">
$(document).ready(function(){
});

</script>
</head>

<body>
<div id="top-wrap">
	<%@include file="../../../head.jsp"  %>
	<div id="bodySpace">
		
	    <div class="clearfix" id="middle" style="position: absolute">  <!-- aqui va la ruta -->
	        <!-- aqui va el arbol de entrada -->
	        <div id="breadcrumb">
	            <ul>
                    <li><a href="<spring:url value="/mainFront?" htmlEscape="true" />">Home</a></li>	
                    <li><span style="color:#666"><fmt:message key="title.reports"/></span></li>		
                    <li><span style="color:#666"><fmt:message key="title.logisticsReports"/></span></li>		
                    <li class="current-page"><span class="end"><span class="middle"><fmt:message key="title.productReportsMissing"/></span></span></li>
                </ul>
	        </div>
	    </div>
	    
	    <div id="principal">
            <!-- izquierda -->
            <div class="cuerpo2y" style="border: 0px solid"><br/><br/><!-- estos break son necesarios ya q uso absolute en css  cuerpo izquierdo-->
                <div class="izq">
					<%@include file="../../../bodyIzq.jsp" %>	
                </div>
                
                <div class="medio" style="border: 0px solid">
					<h2 class="decorado"><fmt:message key="title.productReportsMissing"/></h2></br></br> 
					
					<div id="imgLoad" style="float: left;width: 100%;display: none;"><img src="<c:url value="/resources/images/imgLoad/ajax-loader.gif" />" width="32" height="32" alt="ajax-loader.gif" style="position:absolute; top:30%; left:50%;"/></div> 
					<div id="productReportsMissing">
						
						<table class="tabla_decorado" style="width: 100%">
							<thead>
								<tr>
									<th width="3%" class="th_decoradoRowspan"><fmt:message key="table.num"/></th>
									<th width="22%" class="th_decoradoRowspan"><fmt:message key="table.provider"/></th>
									<th width="21%" class="th_decoradoRowspan"><fmt:message key="table.product"/></th>
									<th width="20%" class="th_decoradoRowspan"><fmt:message key="table.activePrinciple"/></th>
									<th width="16%" class="th_decoradoRowspan"><fmt:message key="table.repositionLevel"/> (<fmt:message key="form.units"/>)</th>
									<th width="18%" class="th_decoradoRowspan"><fmt:message key="table.countToStock"/> (<fmt:message key="form.units"/>)</th>
								</tr>
							</thead>
							<tbody>
								<c:set var="i" value="1"/>
								<c:forEach var="item" items="${listObject}"> 
									<tr class="tr_decorado">
										<td class="th_decorado" style="text-align: center">${i}</td>
										<td class="th_decorado" style="text-align: center">${item[2]}</td>
										<td class="th_decorado" style="text-align: center">${item[3]}</td>
										<td class="th_decorado" style="text-align: center">${item[4]}</td>
										<td class="th_decorado" style="text-align: center">${item[5]}</td>
										<td class="th_decorado" style="text-align: center;${(item[6] > item[5])?'color:orange':'color:red'}"><b>${item[6]}</b></td>
									</tr>
									<c:set var="j" value="1"/>
									<c:set var="i" value="${i+j}"/>
								</c:forEach>
								<c:if test="${(empty listObject)}">
	                           		<tr class="tr_decorado">
	                           			<td class="td_decorado" colspan="8" style="text-align:center"><span style="color:red"><fmt:message key="show.noExistSearchProducts"/></span></td>
	                           		</tr>
	                           </c:if> 
							</tbody>
						</table>
					</div>	                               
                </div>
            </div><!--end of leftPan-->
            
            <div class="yDer" style="border: 1px solid #ccc;">
                  <%@include file="../../../notices.jsp" %>                       
            </div><!--end of rightPan-->
        </div><!--end main content -->
	</div>
</div>
</body>
</html>
